﻿using HeadFirst._06.Command._01.Controllers;
using HeadFirst._06.Command._01.Impl;
using HeadFirst._06.Command._01.ThridPart;
using System;

namespace HeadFirst._06.Command._01
{
    class Program
    {
        static void Main(string[] args)
        {
            var light = new Light();
            ICommand command = new LightOnCommand(light);
            SimpleRemoteControl control = new SimpleRemoteControl();
            control.SetCommand(command);
            control.ButtonWasPressed();

            var garage = new Garage();

             command = new GarageStopCommand(garage);
            control.SetCommand(command);
            control.ButtonWasPressed();

            Console.WriteLine("Hello World!");
        }
    }
}
